package com.xiaoxin.codesandbox.errorCode;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;

/**
 * 读取系统敏感信息
 */
public class ReadError {
    public static void main(String[] args) throws IOException {
        String user = System.getProperty("user.dir");
        String secretFile=user+ File.separator+"src/main/resources/application.yml";
        List<String> list = Files.readAllLines(Paths.get(secretFile));
        for(String s:list){
            System.out.println(s);
        }
    }
}
